import { withInstall } from '@ibiz-template/vue3-util';
import { registerControlProvider, ControlType } from '@ibiz-template/runtime';
import { GridControl } from './grid';
import { GridProvider } from './grid.provider';

export const IBizGridControl = withInstall(GridControl, v => {
  v.component(GridControl.name!, GridControl);
  registerControlProvider(ControlType.GRID, () => new GridProvider());
});
